/**
 * 
 */
package guice.trails.cardeal.providers;

import guice.trails.cardeal.Toyota;

import com.google.inject.Provider;

/**
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @version $Id$
 */
public class ToyotaProvider implements Provider<Toyota> {

	private static int stock = 12;

	@Override
	public Toyota get() {
		Toyota car = null;
		if (stock > 0){
			car = new Toyota(2000, 8);
			stock--;
		}

		return car;
	}

}
